<?php
/**
 * 企业评分模型
*/

namespace app\common\model;

use think\model\concern\SoftDelete;

class Mark extends CommonBaseModel
{
    use SoftDelete;
    // 自定义选择数据
    

    protected $name = 'mark';
    protected $autoWriteTimestamp = true;

    // 可搜索字段
    public array $searchField = ['id',];

    // 可作为条件的字段
    public array $whereField = [];

    // 可作为多选条件的字段
    public array $multiWhereField = ['project_id','company_id','admin_user_id',];

    // 可做为时间
    public array $timeField = [];

    

    /**
    * 关联
    */
    public function project()
    {
        return $this->belongsTo(Project::class);
    }/**
    * 关联
    */
    public function projectLog()
    {
        return $this->belongsTo(ProjectLog::class);
    }/**
    * 关联
    */
    public function company()
    {
        return $this->belongsTo(Company::class);
    }/**
    * 关联后台用户
    */
    public function adminUser()
    {
        return $this->belongsTo(AdminUser::class);
    }

}
